package com.qh.yyxt.service;

import com.qh.yyxt.entity.Flag;
import com.qh.yyxt.pojo.FlagDTO;

import java.util.Date;
import java.util.List;

public interface FlagService
{
    //添加
    public int addFlag(Flag flag);
    //更新
    public int updateInfoById(Integer id, Date passTime,String approver,Date returntime,String state);
//    public int updateInfoById2(Integer id, Date passTime,String approver,Date returntime,String state);
    //根据id查找
    public FlagDTO findById(Integer id);
    //根据state查找
    public List<FlagDTO> findByState(String state);
    //查找
    public List<FlagDTO>findAll();
    //根据uid显示
    public List<FlagDTO> findByUid(Integer uId);
    public Boolean findByFIdAndUid(Integer fId,Integer uId);
    public List<FlagDTO>findByTwoState(String state1,String state2);
}
